#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>




namespace cv{class Mat;}

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
private slots:
    void on_actionWizard_triggered();

    void on_actionExit_triggered();

    void on_actionLoadSet_triggered();

    void on_actionSaveSet_triggered();

    void on_actionSaveLog_triggered();

    void on_actionServer_triggered();

    void on_action32_triggered();

signals:
    void        sig_showImage_c1(const cv::Mat &);
    void        sig_showImage_c2(const cv::Mat &);
    void        sig_showImage_c3(const cv::Mat &);
    void        sig_showImage_c4(const cv::Mat &);


    void        sig_showCarcount_c1(int ,int);
    void        sig_showCarcount_c2(int ,int);
    void        sig_showCarcount_c3(int ,int);
    void        sig_showCarcount_c4(int ,int);

    void        sig_updateAll();
private:

    void        InitWindow();
public:

    void        showImage(int  n,const cv::Mat &img);
    void        showCarcount(int ,int ,int);

private:

    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
